home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / sysdeps / stub / signum.h < prev    next >
C/C++ Source or Header  |  1993-07-22  |  2KB  |  54 lines

  1. /* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB.  If
  16. not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. Cambridge, MA 02139, USA.  */
  18.  
  19. #ifdef    _SIGNAL_H
  20.  
  21. /* Fake signal functions.  */
  22. extern void _sig_ign __P ((int sig));
  23. extern void _sig_dfl __P ((int sig));
  24.  
  25. #define    SIG_ERR    ((__sighandler_t) 0) /* Error return.  */    
  26. #define    SIG_DFL    _sig_dfl    /* Default action.  */    
  27. #define    SIG_IGN    _sig_ign    /* Ignore signal.  */
  28.  
  29.  
  30. /* ANSI signals.  */
  31. #define    SIGABRT    1    /* Abnormal termination.  */
  32. #define    SIGFPE    2    /* Erroneous arithmetic operation.  */
  33. #define    SIGILL    3    /* Illegal instruction.  */
  34. #define    SIGINT    3    /* Interactive attention signal.  */
  35. #define    SIGSEGV    4    /* Invalid access to storage.  */
  36. #define    SIGTERM    5    /* Termination request.  */
  37.  
  38. /* POSIX signals.  */
  39. #define    SIGHUP    6    /* Hangup.  */
  40. #define    SIGQUIT    7    /* Quit.  */
  41. #define    SIGPIPE    8    /* Broken pipe.  */
  42. #define    SIGKILL    9    /* Kill (cannot be blocked, caught, or ignored).  */
  43. #define    SIGALRM    10    /* Alarm clock.  */
  44. #define    SIGSTOP    11    /* Stop (cannot be blocked, caught, or ignored).  */
  45. #define    SIGTSTP    12    /* Keyboard stop.  */
  46. #define    SIGCONT    13    /* Continue.  */
  47. #define    SIGCHLD    14    /* Child terminated or stopped.  */
  48. #define    SIGTTIN    15    /* Background read from control terminal.  */
  49. #define    SIGTTOU    16    /* Background write to control terminal.  */
  50.  
  51. #endif    /* <signal.h> included.  */
  52.  
  53. #define    _NSIG    17
  54.